package com.flag.liutao;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

@SpringBootApplication
@EnableGlobalMethodSecurity(prePostEnabled = true)//启用授权
@ServletComponentScan
@EnableSwagger2//启用swagger
public class FlagApplication {

    public static void main(String[] args) {
        SpringApplication.run(FlagApplication.class, args);
    }

}
